<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户列表</title>
</head>
<body>
    <table>
        <thead>
            <tr>
                <th>序号</th>
                <th>id</th>
                <th>登录名</th>
                <th>姓名</th>
                <th>手机号码</th>
            </tr>
        </thead>
        <tbody>
            <tr th:each="u,s : ${users}">
                <td th:text="${s.count}"></td>
                <td th:text="${u.id}"></td>
                <td th:text="${u.loginName}"></td>
                <td th:text="${u.userName}"></td>
                <td th:text="${u.phone}"></td>
            </tr>
        </tbody>
    </table>
    <p th:with="aa=${users[0].userName}"><span th:text="${aa}"></span></p>
</body>
</html>